package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.TPurviewCustprotocolDao;
import io.renren.entity.TPurviewCustprotocolEntity;
import io.renren.service.TPurviewCustprotocolService;
import io.renren.utils.httpclient.UUIDUitl;



@Service("tPurviewCustprotocolService")
public class TPurviewCustprotocolServiceImpl implements TPurviewCustprotocolService {
	@Autowired
	private TPurviewCustprotocolDao tPurviewCustprotocolDao;
	
	@Override
	public TPurviewCustprotocolEntity queryObject(String id){
		return tPurviewCustprotocolDao.queryObject(id);
	}
	
	@Override
	public List<TPurviewCustprotocolEntity> queryList(Map<String, Object> map){
		return tPurviewCustprotocolDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tPurviewCustprotocolDao.queryTotal(map);
	}
	
	@Override
	public void save(TPurviewCustprotocolEntity tPurviewCustprotocol){
		tPurviewCustprotocol.setId(UUIDUitl.getuuid());
		tPurviewCustprotocolDao.save(tPurviewCustprotocol);
	}
	
	@Override
	public void update(TPurviewCustprotocolEntity tPurviewCustprotocol){
		tPurviewCustprotocolDao.update(tPurviewCustprotocol);
	}
	
	@Override
	public void delete(String id){
		tPurviewCustprotocolDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		tPurviewCustprotocolDao.deleteBatch(ids);
	}
	
}
